package com.mikhailenko.transportMVC.service.es;

import java.util.List;

import com.mikhailenko.transportMVC.exeption.es.RuleDBNotFoundException;
import com.mikhailenko.transportMVC.model.es.RuleDB;

public interface RuleService {

    public RuleDB create(RuleDB ruleDB);
    
    public RuleDB delete(int id) throws RuleDBNotFoundException;
    
    public List<RuleDB> findAll();
    
    public RuleDB update(RuleDB ruleDB) throws RuleDBNotFoundException;
    
    public RuleDB findById(int id);
    
    public List<RuleDB> findByBlockId(int id);
}
